import java.util.Scanner;


public class MyRunRecursive implements Runnable{

	@Override
	public void run() {
		MyRunDad r1 = new MyRunDad();
		Thread h1 = new Thread (r1);
		h1.start();
		
		try {
			h1.join();
		} catch (InterruptedException e) {}
		
		boolean fin = false; 
		System.out.println("Desea jugar otra vez (y o n)");
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		
		if ( x.equalsIgnoreCase("y"))fin = false; 
		else if ( x.equalsIgnoreCase("n"))fin = true; 
		if(!fin){
			MyRunRecursive rec1 = new MyRunRecursive();
			Thread hilo1 = new Thread(rec1);
			hilo1.start();
		}
		
		
		
	}

}
